package com.zenithmind.user.pojo.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.zenithmind.common.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 邮件发送日志(EmailLog)实体类
 *
 * @author zenithmind
 * @since 2025-04-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("email_log")
public class EmailLog extends BaseEntity{
    /**
     * 接收邮箱
     */
    private String toEmail;

    /**
     * 邮件主题
     */
    private String subject;

    /**
     * 邮件内容类型(0:文本,1:HTML)
     */
    private Integer contentType;

    /**
     * 邮件内容摘要
     */
    private String contentSummary;

    /**
     * 发送状态(0:失败,1:成功)
     */
    private Integer status;

    /**
     * 发送时间
     */
    private LocalDateTime sendTime;

    /**
     * 失败原因
     */
    private String failReason;

    /**
     * 邮件类型(0:普通邮件,1:验证码)
     */
    private Integer emailType;
} 